#include "AtShell.h"
#include "stdio.h"

int shell_write(uint8_t* buf, uint32_t len) {
    return  printf("%s", buf);
}
static int test01(int argc, char** argv) {
    AT_printf("argc %d:\r\n", argc);
    return 0;
}
int main() {
    at_init(shell_write);
    AT_SHELL_EXPORT(test01, "", test01);
    at_show_version();
    while (1) {
        uint8_t a = getchar();
        uint8_t bs[1] = { a };
        at_import(bs, 1, 0);
    }
    return 0;
}